package com.situ.day5;

import com.situ.day6.Student;
import org.junit.Test;

public class OOPDemo {
    //使用同一个包下面的类不需要导包
    //java.lang包下面的类不需要导包
    @Test
    public void test1(){
        Student student = new Student();
        //'id' has private access in 'com.situ.day6.Student'
        //student.id = 1;
        //student.name = "王五";
        //student.age = 223;
        //student.gender = "男";

        student.setId(1);
        student.setName("张三");
        student.setAge(23);
        student.setGender("男");
        System.out.println(student.getAge());
        System.out.println(student);

//        Student stu = new Student(2, "lisi", 23, "女");
//        System.out.println(stu);
    }

    @Test
    public void test33() {
        Person person = new Person();
        person.name = "zhang";
    }

    @Test
    public void test333() {
        Rectangle rectangle = new Rectangle(3, 5);
        double zhouChang = rectangle.zhouChang();
        System.out.println(zhouChang);

    }
}
